package lion.mail;

/**
 * @author lion
 * @email hl_0074@sina.com
 * @date 2015年1月26日
 */
public enum MailPriority {

	URGENT(1), HIGH(2), NORMAL(3), LOW(5);

	private int value;

	MailPriority(int level) {
		this.value = level;
	}

	public int value() {
		return this.value;
	}

	public static MailPriority valueOf(int level) {

		switch (level) {
		case 1:
			return URGENT;
		case 2:
			return HIGH;
		case 3:
			return NORMAL;
		case 5:
			return LOW;

		default:
			break;
		}
		return NORMAL;
	}
}
